<html><head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta content="text/javascript" http-equiv="content-script-type">
<title>tango.util.container.more.Vector</title>

<link rel="stylesheet" type="text/css" href="css/style.css">
<!--[if lt IE 7]><link rel="stylesheet" type="text/css" href="css/ie56hack.css"><![endif]-->
<script language="JavaScript" src="js/util.js" type="text/javascript"></script>
<script language="JavaScript" src="js/tree.js" type="text/javascript"></script>
<script language="JavaScript" src="js/explorer.js" type="text/javascript"></script>
<script>
function anchorFromTitle(title, path, ext) {
  var url = path + title + "." + ext;
  document.write("<a href='" + url + "'>" + title + "</a>");
  }
</script>
</head><body>
<div id="tabarea"></div><div id="explorerclient"></div>
<div id="content"><script>explorer.initialize("tango.util.container.more.Vector");</script>
        <table class="content">
                <tr><td id="docbody"><h1><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/container/more/Vector.d?rev=3791">tango.util.container.more.Vector</a></h1>
                
<b>License:</b><br>
BSD style: see <a href="http://www.dsource.org/projects/tango/wiki/LibraryLicense">license.txt</a><br><br>
<b>Version:</b><br>
Initial release: April 2008<br><br>
<b>author:</b><br>Kris<br><br>
<b>Since:</b><br>0.99.7<br><br>
<dl>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>struct <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/container/more/Vector.d?rev=3791#L28">Vector</a></span>
<script>explorer.outline.addDecl('Vector');</script>(V, int Size);</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">A vector of the given value-type V, with maximum depth Size. Note
        that this does no memory allocation of its own </font><br><br>
<dl>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>void <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/container/more/Vector.d?rev=3791#L42">clear</a></span>
<script>explorer.outline.addDecl('clear');</script>();</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Clear the vector</font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>uint <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/container/more/Vector.d?rev=3791#L53">size</a></span>
<script>explorer.outline.addDecl('size');</script>();</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Return depth of the vector</font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>uint <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/container/more/Vector.d?rev=3791#L64">unused</a></span>
<script>explorer.outline.addDecl('unused');</script>();</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Return remaining unused slots</font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>Vector <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/container/more/Vector.d?rev=3791#L75">clone</a></span>
<script>explorer.outline.addDecl('clone');</script>();</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Returns a &#40;shallow&#41; clone of this vector</font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>V <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/container/more/Vector.d?rev=3791#L91">add</a></span>
<script>explorer.outline.addDecl('add');</script>(V <span class="funcparam">value</span>);</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Add a value to the vector.</font><br><br>
<font color="black">Throws an exception when the vector is full<br><br></font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>void <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/container/more/Vector.d?rev=3791#L107">addMore</a></span>
<script>explorer.outline.addDecl('addMore');</script>(V[] <span class="funcparam">value</span>...);</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Add a series of values to the vector.</font><br><br>
<font color="black">Throws an exception when the vector is full<br><br></font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>V <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/container/more/Vector.d?rev=3791#L121">remove</a></span>
<script>explorer.outline.addDecl('remove');</script>();</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Remove and return the most recent addition to the vector.</font><br><br>
<font color="black">Throws an exception when the vector is empty<br><br></font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>V <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/container/more/Vector.d?rev=3791#L138">remove</a></span>
<script>explorer.outline.addDecl('remove');</script>(uint <span class="funcparam">i</span>);</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Index vector entries, where a zero index represents the
                oldest vector entry.</font><br><br>
<font color="black">Throws an exception when the given index is out of range<br><br></font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>V <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/container/more/Vector.d?rev=3791#L161">opIndex</a></span>
<script>explorer.outline.addDecl('opIndex');</script>(uint <span class="funcparam">i</span>);</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Index vector entries, as though it were an array</font><br><br>
<font color="black">Throws an exception when the given index is out of range<br><br></font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>V <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/container/more/Vector.d?rev=3791#L177">opIndexAssign</a></span>
<script>explorer.outline.addDecl('opIndexAssign');</script>(V <span class="funcparam">value</span>, uint <span class="funcparam">i</span>);</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Assign vector entries as though it were an array.</font><br><br>
<font color="black">Throws an exception when the given index is out of range<br><br></font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>V[] <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/container/more/Vector.d?rev=3791#L198">slice</a></span>
<script>explorer.outline.addDecl('slice');</script>();</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Return the vector as an array of values, where the first
                array entry represents the oldest value. 
                
                Doing a foreach&#40;&#41; on the returned array will traverse in
                the opposite direction of foreach&#40;&#41; upon a vector
                 
</font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>V <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/container/more/Vector.d?rev=3791#L209">error</a></span>
<script>explorer.outline.addDecl('error');</script>(size_t <span class="funcparam">line</span>); [private]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Throw an exception</font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>int <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/container/more/Vector.d?rev=3791#L220">opApply</a></span>
<script>explorer.outline.addDecl('opApply');</script>(int delegate(ref V value) <span class="funcparam">dg</span>);</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Iterate from the most recent to the oldest vector entries</font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>int <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/container/more/Vector.d?rev=3791#L235">opApply</a></span>
<script>explorer.outline.addDecl('opApply');</script>(int delegate(ref V value, ref bool kill) <span class="funcparam">dg</span>);</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Iterate from the most recent to the oldest vector entries</font><br><br></dd></dl></dd></dl></td></tr>
                <tr><td id="docfooter">
                        Copyright (c) 2008 Kris Bell. All rights reserved :: page rendered by CandyDoc. Generated by <a href="http://code.google.com/p/dil">dil</a> on Sat Aug  2 16:08:33 2008.
                </td></tr>
        </table>
</div>
<script></script>
</body></html>